package com.logistics.utils.webservice.service;

import com.fasterxml.jackson.core.JsonProcessingException;
import com.logistics.utils.webservice.model.WebServiceResponse;

import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebService;
import java.lang.reflect.InvocationTargetException;

@WebService(name = "IWebService", targetNamespace = "http://server.webservice.example.com")
public interface IWebService {


    @WebMethod
    public WebServiceResponse execute(@WebParam(name = "clazz") String clazz,
                                      @WebParam(name = "method") String method,
                                      @WebParam(name = "param") String param)
            throws ClassNotFoundException, NoSuchMethodException, InvocationTargetException, IllegalAccessException, JsonProcessingException, InstantiationException;
}
